LINALG
Source Files
Modules
Procedures
Derived Types
identity
Function
10 statements
Source File
linear_algebra.f90
linear_algebra
identity
Contents
public pure function identity(n) result(rst)
Constructs an N-by-N identity matrix.
Arguments
Type
Intent
Optional
Attributes
Name
integer(kind=int32),
intent(in)
::
n
The size of the matrix.
Return Value
real(kind=real64), allocatable, dimension(:,:)
The resulting matrix.